package com.td.module.farmer.controller.admin.employ.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 农业社会化服务 Excel 导出 Request VO", description = "参数和 EmployPageReqVO 是一致的")
@Data
public class EmployExportReqVO {

    @ApiModelProperty(value = "服务名称", example = "赵六")
    private String employName;

    @ApiModelProperty(value = "服务类型", example = "1")
    private Integer employType;

    @ApiModelProperty(value = "服务主体")
    private String subject;

    @ApiModelProperty(value = "服务开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] employStartTime;

    @ApiModelProperty(value = "服务结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] employEndTime;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
